package edu.scau.mis.system.service;

import org.springframework.security.core.AuthenticationException;

import java.util.Map;

public interface IUserAuthService {
    /**
     * 用户登录
     * @param username
     * @param password
     * @return accesstoken
     * @throws AuthenticationException
     */
    Map<String, Object> login(String username, String password) throws AuthenticationException;

    Map<String, Object> refreshToken(String refreshToken) throws AuthenticationException;
}